<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\OperationManagement\JobScope;
use Faker\Generator as Faker;
use Illuminate\Support\Str;

$factory->define(JobScope::class, function (Faker $faker) {
    return [
        'number' => $faker->numberBetween(1,3),
        'road_name' => $faker->name,
        'road_level' => $faker->numberBetween(1,3),
        'type' => $faker->numberBetween(0,2),
        'area_id' => $faker->numberBetween(1,10),
        'road_origin' => Str::random(10),
        'road_destination' => Str::random(10),
        'road_length' =>$faker->numberBetween(1,5),
        'road_width' =>$faker->numberBetween(1,2),
        'motor_length' =>$faker->numberBetween(1,5),
        'motor_width' =>$faker->numberBetween(1,2),
        'non-motor_length' =>$faker->numberBetween(1,5),
        'non-motor_width' =>$faker->numberBetween(1,2),
        'sidewalk_length' =>$faker->numberBetween(1,5),
        'sidewalk_width' =>$faker->numberBetween(1,2),
        'road_areas' => $faker->numberBetween(4,6),
        // 'machine_task' => $faker->numberBetween(4,6),
        // 'watering' => $faker->numberBetween(4,6),
        // 'sidewalk' => $faker->numberBetween(4,6),
        // 'dustfall' => $faker->numberBetween(4,6),
        'length_unit' => '米',
        'area_unit' => '㎡',
        'mode' => Str::random(5),
        'remake' => Str::random(10)
    ];
});
